home *** CD-ROM | disk | FTP | other *** search
- Path: ens-cachan.fr!news
- From: Gabriel Dos Reis <dosreis@DPTMaths.ENS-Cachan.Fr>
- Newsgroups: comp.lang.c++
- Subject: Help
- Date: 09 Feb 1996 22:13:05 +0100
- Organization: ╔cole Normale SupΘrieure de Cachan
- Sender: dosreis@ens-cachan.fr (Kodjo Dos Reis)
- Message-ID: <v8vhgx0gq3i.fsf@dptmaths.ens-cachan.fr>
- NNTP-Posting-Host: dptmaths.ens-cachan.fr
- Mime-Version: 1.0
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- X-Newsreader: (ding) Gnus v0.86
-
-
-
-
- Hi!
-
- I've got some problems with C++
- Could someone explain me why the compiler complains about this code
-
- typedef int myarray[10];
-
- myarray* x;
-
- x = new myarray; // the compiler complains here
-
- But this code seems to work
-
- x = new myarray[1]
-
-
-
- Gaby.
-
-
- --
- Gabriel Dos Reis
- dosreis@dptmaths.ens-cachan.fr | dosreis@yoko.ens-cachan.fr
- http://yoko.ens-cachan.fr:8080/~dosreis/
-
- Combien tout ce qu'on dit est loin de ce qu'on pense.
- Que la bouche et le coeur sont peu d'intelligence.
-
- RACINE, Britannicus Acte V,ScΦne I.
-
-
-
-